package com.css.zfzx.sjcj.modules.drill.base.basedivision.repository.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
@Table(
        name = "org_division"
)
public class DivisionsEntity {
        private static final long serialVersionUID = -8053718052281283209L;
        @Id
        @Column(
                name = "division_id"
        )
        private String divisionId;
        @Column(
                name = "division_code"
        )
        private String divisionCode;
        @Column(
                name = "division_name"
        )
        private String divisionName;
        @Column(
                name = "parent_id"
        )
        private String parentId;
        @Column(
                name = "all_parent_id"
        )
        private String allParentId;
        @Column(
                name = "division_level"
        )
        private String divisionLevel;
        @Column(
                name = "division_type"
        )
        private String divisionType;
        @Column(
                name = "region"
        )
        private String region;
        @Column(
                name = "is_valid"
        )
        private String isValid;
        @Column(
                name = "create_user"
        )
        private String createUser;
        @Column(
                name = "create_time"
        )
        @JsonFormat(
                pattern = "yyyy-MM-dd HH:mm:ss",
                timezone = "GMT+8"
        )
        private Date createTime;
        @Column(
                name = "update_user"
        )
        private String updateUser;
        @Column(
                name = "update_time"
        )
        @JsonFormat(
                pattern = "yyyy-MM-dd HH:mm:ss",
                timezone = "GMT+8"
        )
        private Date updateTime;

        public DivisionsEntity() {
        }

        public String getDivisionId() {
            return this.divisionId;
        }

        public String getDivisionCode() {
            return this.divisionCode;
        }

        public String getDivisionName() {
            return this.divisionName;
        }

        public String getParentId() {
            return this.parentId;
        }

        public String getAllParentId() {
            return this.allParentId;
        }

        public String getDivisionLevel() {
            return this.divisionLevel;
        }

        public String getDivisionType() {
            return this.divisionType;
        }

        public String getRegion() {
            return this.region;
        }

        public String getIsValid() {
            return this.isValid;
        }

        public String getCreateUser() {
            return this.createUser;
        }

        public Date getCreateTime() {
            return this.createTime;
        }

        public String getUpdateUser() {
            return this.updateUser;
        }

        public Date getUpdateTime() {
            return this.updateTime;
        }

        public void setDivisionId(final String divisionId) {
            this.divisionId = divisionId;
        }

        public void setDivisionCode(final String divisionCode) {
            this.divisionCode = divisionCode;
        }

        public void setDivisionName(final String divisionName) {
            this.divisionName = divisionName;
        }

        public void setParentId(final String parentId) {
            this.parentId = parentId;
        }

        public void setAllParentId(final String allParentId) {
            this.allParentId = allParentId;
        }

        public void setDivisionLevel(final String divisionLevel) {
            this.divisionLevel = divisionLevel;
        }

        public void setDivisionType(final String divisionType) {
            this.divisionType = divisionType;
        }

        public void setRegion(final String region) {
            this.region = region;
        }

        public void setIsValid(final String isValid) {
            this.isValid = isValid;
        }

        public void setCreateUser(final String createUser) {
            this.createUser = createUser;
        }

        public void setCreateTime(final Date createTime) {
            this.createTime = createTime;
        }

        public void setUpdateUser(final String updateUser) {
            this.updateUser = updateUser;
        }

        public void setUpdateTime(final Date updateTime) {
            this.updateTime = updateTime;
        }



}
